<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/myservlet" method="post" enctype="multipart/form-data">
    <!--  <form action="/testopload" method="post" enctype="multipart/form-data">-->
    <input type="text" name="name">
    <input type="file" name="photo">

    <input type="submit">
</form>
</body>
</html>